import http from './index.js'

// 搜索现有的数据集2
export const getGpu = data => {
  return http({
    method: 'get',
    url: 'gpu-usage',
    params: data
  })
}

//列出现有服务器与对应的ip
export const getServerList = data => {
  return http({
    method: 'get',
    url: 'server_list',
    params: data
  })
}

//查询某个服务器的显存使用、gpu数量、gpu型号、CPU核心数，内存，硬盘，需要查询参数：server_ip
export const getServerListGpu = data => {
  return http({
    method: 'get',
    url: 'gpu-usage',
    params: data
  })
}
